package com.morn.fanfou;

import android.accounts.Account;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.morn.fanfou.api.Fanfou;
import com.morn.fanfou.authenticator.LoginActivity;

public class WelcomeActivity extends Activity {
	private Fanfou fanfou;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		fanfou = ((FanfouApplication) this.getApplication()).getFanfou();
		Account accoutn = null;

		if (accoutn != null) {
//			fanfou.setCredentials(userAccount);
			Intent intentMain = new Intent(this, MainActivity.class);
			this.startActivity(intentMain);
			this.finish();
		} else {
			Intent intentLogin = new Intent(this, LoginActivity.class);
			this.startActivity(intentLogin);
			this.finish();
		}

	}

}
